package com.zhongjian.technologycal.mall.activity.healthily.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;
import com.zhongjian.technologycal.mall.R;
import com.zhongjian.technologycal.mall.activity.healthily.activity.HealthDetailsActivity;
import com.zhongjian.technologycal.mall.base.BaseUserFragment;

import butterknife.BindView;
import butterknife.OnClick;


/**
 * Created by wei on 2017/12/7.
 */

public class HealthNewestFragment extends BaseUserFragment {
    public static final String CATEGORY_NAME = "com.nanchen.aiyagirl.module.category.CategoryFragment.CATEGORY_NAME";
    @BindView(R.id.health_iv_heading)
    ImageView health_iv_heading;
    @Override
    protected void init() {

        Picasso.get().load("http://seopic.699pic.com/photo/50008/2836.jpg_wh1200.jpg").into(health_iv_heading);

    }

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.fragment_health_choiceness;
    }

    public static HealthNewestFragment newInstance(String mCategoryName) {
        HealthNewestFragment categoryFragment = new HealthNewestFragment();
        Bundle bundle = new Bundle();
        bundle.putString(CATEGORY_NAME, mCategoryName);
        categoryFragment.setArguments(bundle);
        return categoryFragment;
    }


    @OnClick(R.id.ll_health_choice)
    public void onClickIntroduce(){
        Intent intent = new Intent();
        intent.setClass(getActivity(),HealthDetailsActivity.class);
        startActivity(intent);
    }

}
